<template>
  <div class="dashboard-container">
    <HMap :map-data="mapData"></HMap>
  </div>
</template>

<script>
import HMap from '../../components/Area/HMap'
import figure from '../../api/figure/figure'

export default {
  components: {
    HMap
  },
  data() {
    return {
      mapData: []
    }
  },
  mounted() {
    figure.getFigureCity().then(res => {
      this.mapData = res.data.figureCity
    })
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
    //border: 1px solid #ddd;
    width: 100%;
    height: 600px;
  }

  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

</style>
